/*
 * @Author: szx
 * @Date: 2022-05-10 14:15:36
 * @LastEditTime: 2022-05-10 14:30:48
 * @Description:
 * @FilePath: \leetcode\面试题\01\01\01.js
 */
/**
 * @param {string} astr
 * @return {boolean}
 */
var isUnique = function (astr) {
    let mark = 0;
    for (let i of astr) {
        if ((mark & (1 << (i.charCodeAt() - 97))) !== 0) return false;
        else mark |= 1 << (i.charCodeAt() - 97);
    }
    return true;
};
